﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="HappyPlanResultForm.aspx.cs" Inherits="App_Input_HappyPlanResultForm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript" type="text/javascript">
        function openPersonSrh(index){
            var url  = "../Commons/EmployeeSearchForm.aspx";
	        var prm;
	        if (1 == index) {
	            prm = "?CONTROL_ID=" + "<%= txtActMainPsn.ClientID %>";
	            prm += "&CONTROL_NAME=" + "<%= txtActMainPsnName.ClientID %>";
	        } else if (2 == index) {
	            prm = "?CONTROL_ID=" + "<%= txtActCoPsn1.ClientID %>";
	            prm += "&CONTROL_NAME=" + "<%= txtActCoPsn1Name.ClientID %>";
	        } else if (3 == index) {
	            prm = "?CONTROL_ID=" + "<%= txtActCoPsn2.ClientID %>";
	            prm += "&CONTROL_NAME=" + "<%= txtActCoPsn2Name.ClientID %>";
	        } else if (4 == index) {
	            prm = "?CONTROL_ID=" + "<%= txtActCoPsn3.ClientID %>";
	            prm += "&CONTROL_NAME=" + "<%= txtActCoPsn3Name.ClientID %>";
	        }
	        url += prm;	        
	        var win = window.open(url,'HappyEmpSrhForm','scrollbars,resizable,height=460,width=500');
	        win.focus();	        	        
        }
    </script>
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                        (new TitleBar('SearchBar', '活动计划登记')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background: ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" style="width: 20%">&nbsp; 活动结果编号：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:Label ID="lblActId" runat="server"></asp:Label></td>
                        <td align="left" style="width: 20%">&nbsp;</td>
                        <td align="left" style="width: 25%">&nbsp;</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" style="width: 20%">&nbsp; 活动编号：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:TextBox ID="txtActionId" runat="server"
                            MaxLength="10" Width="89px" ></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" Text="  读取活动信息  " Height="22px" Width="105px" CssClass="button" OnClick="Button1_Click"/></td>
                        <td align="left" style="width: 20%">&nbsp;</td>
                        <td align="left" style="width: 25%">&nbsp;</td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" style="width: 20%"><span style="color: #ff0000">
                            *</span>活动名称：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:TextBox ID="txtActName" runat="server"
                            MaxLength="10" Width="89px" ></asp:TextBox></td>
                        <td align="left" style="width: 20%"><span style="color: #ff0000">*</span>&nbsp;活动分类：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:DropDownList ID="lstActType" runat="server" OnSelectedIndexChanged="lstActType_SelectedIndexChanged"  AutoPostBack="true">
                        </asp:DropDownList></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px;">&nbsp;</td>
                        <td style="" align="left" nowrap class="list_data_bg_left"><span style="color: #ff0000">
                            *</span>活动日期：</td>
                        <td style="" align="left" nowrap>&nbsp;<asp:TextBox ID="txtActDate" runat="server"
                            MaxLength="10" Width="89px"  onfocus="new Calendar(1900,2015,0,null).show(this)" ></asp:TextBox>
                            <asp:TextBox ID="txtActDateMemo" runat="server" MaxLength="128" Width="89px"></asp:TextBox></td>
                        <td align="left" style="" nowrap><span style="color: #ff0000">*</span>&nbsp;活动地点：</td>
                        <td align="left" style="" nowrap>&nbsp;<asp:TextBox ID="txtActAddress" runat="server"
                            Width="97%" ></asp:TextBox>&nbsp;</td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"><span style="color: #ff0000">*</span>责任人：</td>
                        <td style="">&nbsp;<asp:TextBox ID="txtActMainPsn" runat="server" MaxLength="4" Width="32px"></asp:TextBox>
                            <asp:TextBox ID="txtActMainPsnName" runat="server" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                            contentEditable="false" ForeColor="Black" MaxLength="10" Width="57px" TabIndex="-1"></asp:TextBox>&nbsp;<a href="#" onclick="javascript:openPersonSrh(1);">
                                <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td style="">&nbsp; &nbsp;协助人1：</td>
                        <td style="">&nbsp;<asp:TextBox ID="txtActCoPsn1" runat="server" MaxLength="4" Width="32px"></asp:TextBox>
                            <asp:TextBox ID="txtActCoPsn1Name" runat="server" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                            contentEditable="false" ForeColor="Black" MaxLength="10" Width="57px" TabIndex="-1"></asp:TextBox>&nbsp;<a href="#" onclick="javascript:openPersonSrh(2);">
                                <img id="Img1" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 协助人2：</td>
                        <td>&nbsp;<asp:TextBox ID="txtActCoPsn2" runat="server" MaxLength="4" Width="32px"></asp:TextBox>
                            <asp:TextBox ID="txtActCoPsn2Name" runat="server" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                            contentEditable="false" ForeColor="Black" MaxLength="10" Width="57px" TabIndex="-1"></asp:TextBox>&nbsp;<a href="#" onclick="javascript:openPersonSrh(3);">
                                <img id="Img2" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td>&nbsp; &nbsp;协助人3：</td>
                        <td>&nbsp;<asp:TextBox ID="txtActCoPsn3" runat="server" MaxLength="4" Width="32px"></asp:TextBox>
                            <asp:TextBox ID="txtActCoPsn3Name" runat="server" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                            contentEditable="false" ForeColor="Black" MaxLength="10" Width="57px" TabIndex="-1"></asp:TextBox><a href="#" onclick="javascript:openPersonSrh(4);">&nbsp;
                                <img id="Img3" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 参与对象：</td>
                        <td style="">&nbsp;<asp:TextBox ID="txtActObject" runat="server" MaxLength="100" Width="89px"></asp:TextBox></td>
                        <td style="">&nbsp; &nbsp;参加人数：</td>
                        <td style="">&nbsp;<asp:TextBox ID="txtActCount" runat="server" MaxLength="10" Width="89px"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr id="volunteerTr1" runat="server" visible="false">
                        <td style="width: 75px; height: 24px" ></td>
                        <td class="list_data_bg_left" style="width: 185px; height: 24px;">
                            <span style="color: #ff0000">*</span>义工人数：</td>
                        <td style="WIDTH: 234px; HEIGHT: 24px">&nbsp;<asp:TextBox ID="txtVolunteerNum" runat="server" MaxLength="100" Width="89px"></asp:TextBox></td>
                        <td style="HEIGHT: 24px">
                            &nbsp;<span style="color: #ff0000">*</span>服务人数：</td>
                        <td style="HEIGHT: 24px">&nbsp;<asp:TextBox ID="txtServerNum" runat="server" MaxLength="10" Width="89px"></asp:TextBox></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr id="volunteerTr2" runat="server" visible="false">
                        <td style="width: 75px;" ></td>
                        <td class="list_data_bg_left" style="width: 185px;">&nbsp; 服务类型：</td>
                        <td colspan="2">
                        <table width="100%">
                        <tr>
                        <td style="width: 215px">
                        <asp:RadioButtonList ID="radServerType" runat="server" RepeatDirection="Horizontal" >
                            <asp:ListItem Selected="True" Value="01">服务1</asp:ListItem>
                            <asp:ListItem Value="02">服务2</asp:ListItem>
                            <asp:ListItem Value="03">服务3</asp:ListItem>
                            <asp:ListItem Value="04">其他</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td>
                        <asp:TextBox ID="txtServerOther" runat="server" Width="109px"></asp:TextBox>
                        </td>
                        </tr>
                        </table>
                        </td>
                        <td></td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="HEIGHT: 24px">&nbsp; 经费预算：</td>
                        <td style="HEIGHT: 24px">&nbsp;宣传费用（元）
                            <asp:TextBox ID="txtFeePropagandize" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style="HEIGHT: 24px"></td>
                        <td style="HEIGHT: 24px">&nbsp;人工费用（元）
                            <asp:TextBox ID="txtFeeManpower" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style=""></td>
                        <td style="">&nbsp;材料费用（元）
                            <asp:TextBox ID="txtFeeMaterial" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style=""></td>
                        <td style="">&nbsp;交通费用（元）
                            <asp:TextBox ID="txtFeeTraffic" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style=""></td>
                        <td style="">&nbsp;其他费用（元）
                            <asp:TextBox ID="txtFeeOther" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style=""></td>
                        <td style="">&nbsp;合计费用（元）
                            <asp:TextBox ID="txtFeeTotal" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style=""></td>
                        <td style=""></td>
                        <td style=""></td>
                        <td style=""></td>
                        <td></td>
                    </tr>
                   <%-- <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 活动发布内容：</td>
                        <td style="" colspan="3">&nbsp;<asp:TextBox ID="txtMemo1" runat="server" Rows="5"
                            TextMode="MultiLine" Width="99%"></asp:TextBox></td>
                        <td style=""></td>
                    </tr>--%>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px; vertical-align:top">&nbsp; 活动发布内容：</td>
                        <td style="" colspan="3">
                        &nbsp;<asp:TextBox ID="txtContent" runat="server" Rows="5" TextMode="MultiLine"
                            Width="99%"></asp:TextBox>
                        </td>
                        <td style=""></td>

                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 活动审批内容：</td>
                        <td colspan="3">&nbsp;<asp:TextBox ID="txtMemo2" runat="server" Rows="5" TextMode="MultiLine"
                            Width="99%"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="">
                <asp:Button ID="btnOk" runat="server" Text="  保 存  " Height="22px" Width="89px" CssClass="button"
                    OnClick="btnOk_Click"  OnClientClick="javascript:return window.confirm('是否保存？');" CommandName="SAVE" />
                <asp:Button ID="btnDel" runat="server" Text="  删 除  " Height="22px" Width="89px"
                    CssClass="button" OnClientClick="javascript:return window.confirm('确定要删除当前活动计划吗？');"
                    OnClick="btnDel_Click" />
                <asp:Button ID="btnBack" runat="server" Text="  返 回  " Height="22px" Width="89px"
                    CssClass="button" OnClick="btnBack_Click" /></td>
        </tr>
    </table>
</asp:Content>

